package com.xmb.wcapi.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmb.wcapi.entity.IOSReportWork;
import com.xmb.wcapi.entity.QualityData;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@DS("db2")
public interface QualityDataMapper extends BaseMapper<QualityData> {

    IPage<QualityData> selectPageList(Page<?> page,@Param("startTime") String startTime,@Param("endTime") String endTime,@Param("codes") List<String> codes);

    List<JSONObject> getMaterialDaySum(@Param("one") boolean one,@Param("time") String time,@Param("material") Set<String> material);

}
